jQuery(function(){
	var paramMap = params();
	jQuery.ajax({
		url:server_url+"/rest/sellerOrder/getOrderInfo.do",
		data:{orderid:paramMap['orderid']},
		success:function(data){
			if(data.retCode != '0000'){
				easyAlert("出了点问题:-D");
				return;
			}
			var order = data.data;
			
			jQuery("#orderCode").text("订单号："+order.orderCode);
			$("#picPath").attr("src",order.lstOrderDetail[0].picPath);
			$("#productName").text(order.lstOrderDetail[0].productName);
			$("#productPrice").text("¥"+order.lstOrderDetail[0].productPrice+"/头");
			$("#price").text("合计：¥"+order.price);
			$("#spec").html(" <span>类别："+order.lstOrderDetail[0].spec+"<i>X</i>"+order.lstOrderDetail[0].productNum+"</span>");

		},
		erro:function(){
			easyAlert("出了点问题:-D");
		}
	});
	
});
function toOrderList(){
	history.back(-1);
}